home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-9.10-netbook-remix-PL.iso / casper / filesystem.squashfs / usr / share / doc / libasound2-plugins / speexdsp.txt < prev    next >
Text File  |  2009-05-06  |  1KB  |  55 lines

  1. Speex Preprocessing Plugin
  2. ==========================
  3.  
  4. This plugin provides a pre-processing of a mono stream like denoise
  5. using libspeex DSP API.  You can use the plugin with the plugin type
  6. "speex" like below:
  7.  
  8.     pcm.my_pcm {
  9.         type speex
  10.         slave.pcm "default"
  11.     }
  12.  
  13. Then record like
  14.  
  15.     % arecord -fdat -c1 -Dplug:speex foo.wav
  16.  
  17. so that you'll get 48kHz mono stream with the denoising effect.
  18.  
  19. Right now, the plugin supports only a mono stream.
  20. The accepted format is only S16.
  21.  
  22. The following parameters can be set optionally:
  23.  
  24. * frames
  25.  
  26.   This controls the frames of the intermediate buffer.  This
  27.   corresponds to the latency of the filter.  As default it's 64.
  28.  
  29. * denoise
  30.  
  31.   A boolean value to enable/disable the denoise function.  Default is
  32.   yes.
  33.  
  34. * agc
  35.    
  36.   A boolean value to enable/disable the auto-gain control function.
  37.   Default is no.
  38.  
  39. * agc_level
  40.  
  41.   A float value for the automatic gain-control level.  Default is 8000.
  42.  
  43. * dereverb
  44.  
  45.   A boolean value to enable/disable dereverb function.  Default is no.
  46.  
  47. For example, you can enable agc like
  48.  
  49.     pcm.my_pcm {
  50.         type speex
  51.         slave.pcm "default"
  52.         agc 1
  53.         agc_level 8000
  54.     }
  55.